package by.grsu.crs.dao;

import java.sql.SQLException;
import java.util.List;

import by.grsu.crs.model.ConfidentialData;

public interface ConfidentialDataDao {

	public boolean addConfidentialData(ConfidentialData confidentialData) throws SQLException;
	
	public List<ConfidentialData> getAllConfidentialDatas() throws SQLException;
	
	public ConfidentialData getConfidentialDataById(int id) throws SQLException;
	
	public ConfidentialData getConfidentialDataByPassportNumber(String passportNumber) throws SQLException;
	
	public ConfidentialData getConfidentialDataByCreditCard(int creditCard) throws SQLException;
	
	public boolean deleteConfidentialDataById(int id) throws SQLException;
	
	public boolean updateConfidentialDataById(int id, ConfidentialData confData) throws SQLException;

}